<template>
  <ElCol v-bind="getColProps">
    <slot></slot>
  </ElCol>
</template>

<script setup lang="ts" name="ColWrapper">
import { computed } from "vue";
import { ElCol } from "element-plus";
const props = defineProps({
  widget: {
    type: Object
  },
  designer: {
    type: Object
  }
});
const getColProps = computed(() => {
  return { span: props.widget!.elProps?.span || parseInt(props.designer!.widget.formProps.span) };
});
</script>

<style lang="scss" scoped></style>
